package myhashmap;

import java.util.HashMap;

public class HashMapTester {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		long usedMB1 = (-Runtime.getRuntime().freeMemory()+Runtime.getRuntime().totalMemory());
		HashMap <Integer,Integer> testingHashMap =new HashMap<>();
		for (int i = 0; i < 1000; i++) {
			testingHashMap.put(i, i);
		}
		System.out.println(testingHashMap.toString());
		long usedMB2 = (-Runtime.getRuntime().freeMemory()+Runtime.getRuntime().totalMemory());
		System.out.println(usedMB2-usedMB1);

	}

}
